package com.ruoyi.project.charging.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.charging.mapper.CChargingDeviceMapper;
import com.ruoyi.project.charging.domain.CChargingDevice;
import com.ruoyi.project.charging.service.ICChargingDeviceService;

/**
 * 岸电设备数据Service业务层处理
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
@Service
public class CChargingDeviceServiceImpl implements ICChargingDeviceService 
{
    @Autowired
    private CChargingDeviceMapper cChargingDeviceMapper;

    /**
     * 查询岸电设备数据
     * 
     * @param deviceId 岸电设备数据主键
     * @return 岸电设备数据
     */
    @Override
    public CChargingDevice selectCChargingDeviceByDeviceId(Long deviceId)
    {
        return cChargingDeviceMapper.selectCChargingDeviceByDeviceId(deviceId);
    }

    /**
     * 查询岸电设备数据列表
     * 
     * @param cChargingDevice 岸电设备数据
     * @return 岸电设备数据
     */
    @Override
    public List<CChargingDevice> selectCChargingDeviceList(CChargingDevice cChargingDevice)
    {
        return cChargingDeviceMapper.selectCChargingDeviceList(cChargingDevice);
    }

    /**
     * 新增岸电设备数据
     * 
     * @param cChargingDevice 岸电设备数据
     * @return 结果
     */
    @Override
    public int insertCChargingDevice(CChargingDevice cChargingDevice)
    {
        return cChargingDeviceMapper.insertCChargingDevice(cChargingDevice);
    }

    /**
     * 修改岸电设备数据
     * 
     * @param cChargingDevice 岸电设备数据
     * @return 结果
     */
    @Override
    public int updateCChargingDevice(CChargingDevice cChargingDevice)
    {
        return cChargingDeviceMapper.updateCChargingDevice(cChargingDevice);
    }

    /**
     * 批量删除岸电设备数据
     * 
     * @param deviceIds 需要删除的岸电设备数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingDeviceByDeviceIds(Long[] deviceIds)
    {
        return cChargingDeviceMapper.deleteCChargingDeviceByDeviceIds(deviceIds);
    }

    /**
     * 删除岸电设备数据信息
     * 
     * @param deviceId 岸电设备数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingDeviceByDeviceId(Long deviceId)
    {
        return cChargingDeviceMapper.deleteCChargingDeviceByDeviceId(deviceId);
    }
}
